//
//  NoticeHeaderView.m
//  Contacts
//
//  Created by 武 娇 on 14-8-2.
//  Copyright (c) 2014年 李 雷川. All rights reserved.
//

#import "NoticeHeaderView.h"

@implementation NoticeHeaderView
@synthesize section,tableView;
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        UIImage *image = [UIImage imageNamed:@"message.png"];
        UIImageView *messageImageView = [[UIImageView alloc]initWithFrame:CGRectMake(15,(CGRectGetHeight(self.frame) - image.size.height)/2,image.size.width,image.size.height)];
        messageImageView.image = image;
        [self addSubview:messageImageView];
        
        UILabel *label =[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(messageImageView.frame) +5, 0, 80, CGRectGetHeight(self.frame))];
        label.backgroundColor =[UIColor clearColor];
        label.font = [UIFont systemFontOfSize:16];
        label.text = @"最新消息";
        [self addSubview:label];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
